<!DOCTYPE html>
<html lang="zh-cn">
<head>
<include file="Widget/head" />
<link rel="stylesheet" type="text/css" href="__CSS__/Home/defaut.css">
<link rel="stylesheet" type="text/css" href="__CSS__/Home/distance.css">
<link rel="stylesheet" type="text/css" href="__CSS__/Home/button.css">
<link rel="stylesheet" type="text/css" href="__CSS__/Home/font.css">
<link href="__CSS__/Home/global.css" rel="stylesheet" type="text/css">
<link href="__CSS__/Home/member.css" rel="stylesheet" type="text/css">
<link rel="stylesheet" type="text/css" href="__CSS__/Home/lrtk.css">
<script>
	function checkform(){
		$("#wtaskForm").submit();
	}
</script>
</head>
<body>
{:W('Page/menu')}
{:W('Page/shanginfo')}

<div class="contt">
	<div class="halltop">
        <div class="hallr" style="width:100%;">
            <ul style="width:520px; float:left;">
                <li><a href="{:U('Shang/lists')}" class="lsitico">任务大厅</a></li>
                <li><a href="{:U('Shang/mylists')}" class="lsitico3">我的任务</a></li>
                <li class="hallrsld"><a href="{:U('Shang/userinfo')}" class="lsitico2">个人中心</a></li>
	            <li><a href="{:U('Index/tuijian')}" class="lsitico3">推荐</a></li>
            </ul>
            <div style="width:260px; float:right; padding-top: 15px;">
				<span class="bbtn dis_l50 cdfabus" style="margin-left:auto; float:left;"><a href="{:U('Shang/fabu')}" ></a></span>&nbsp;
                <span class="bbtn dis_l50 cdshuaxin" style="margin-left:auto; float:left;"><a href="{:U('Shang/lists')}" ></a></span>&nbsp;
            </div>
    		<div class="clr"></div>
        </div>
        <div class="clr"></div>
	</div>    
       
    <div class="mydata_ctl">
      	<div class="ord_ctt">
        	<div class="ordtop2"><a class="sorange" href="{:U('Shang/userinfo')}">个人资料</a></div>
            <div class="ordtop2"><a href="{:U('Shang/usermima')}">修改密码</a></div>
            <div class="ordtop2"><a href="{:U('Shang/jiaoyimima')}">修改交易密码</a></div>
            <div class="ordtop2"><a class="sorange" href="{:U('Shang/userzijin')}">资金明细</a></div>
            <div class="ordtop2"><a href="{:U('Shang/chongzhi')}">充值</a></div>
            <div class="ordtop1 dis_l8"><a href="{:U('Shang/tixian')}">提现</a></div>
            <div class="ordtop2"><a href="{:U('Shang/dianpu')}">绑定店铺</a></div>
            <div class="ordtop2"><a href="{:U('Index/fanxian')}">推荐返现</a></div>
            <div class="ordtop2"><a href="{:U('Shang/renzheng')}">认证</a></div>
            <!-- 提现操作 -->
            <form id="wtaskForm" name="wtaskForm" class="myform" action="{:U('Shang/tixian')}" method="post"onsubmit="return chkfrm(this);">
               	<div class="witcash">
                   <table width="100%" border="0" cellspacing="0" cellpadding="0">
                        <tbody>
                        <tr>
                            <td width="9%" class="sgray">可用金额：</td>
                            <td width="91%">{$info['able_money']}<input type="hidden" id="keyong" value="{$info['able_money']}"></td>
                        </tr>
                        <tr>
                            <td class="sgray">提现方式：</td>
                            <td>
                                <label>
                                    <input value="1" type="radio" class="input-text" name="type" checked="">支付宝
                                    <input type="hidden" name="realname" value="{$info['realname']}" />
                                    <input type="hidden" name="zhifubao" value="{$info['zhifubao']}" />
                                </label>
                            </td>
                        </tr>
                        <tr>
                            <td class="sgray">支付宝：</td>
                            <td> {$info['realname']}&nbsp;&nbsp;&nbsp;{$info['zhifubao']}
                                <span class="ssblue dis_l10"><a href="{:U('Shang/userinfo')}">修改</a></span>
                            </td>
                        </tr>
                        <tr>
                            <td class="sgray">提现金额：</td>
                            <td>
                                <input type="text" style="height:22px;width:100px;" name="money" id="money" maxlength="7" class="required">元
                            	<strong class="high"> *</strong>
                            </td>
                        </tr>
                        <tr>
                            <td class="sgray">交易密码：</td>
                            <td>
                                <input type="password" name="jpassword" maxlength="18" style="height:22px;width:180px;" id="jpassword" name="traPwd" class="required"> 
                            	<strong class="high"> *</strong>
                            </td>
                        </tr>
                    	</tbody>
                   </table>
                   <button type="button" id="wtasksend" onclick="checkform();" class="gwyy_btn">提交</button> 
               	</div>
               	<p class="red1" style="font-size:14px;">提现为支付宝账号，建议是邮箱支付宝账号，手机支付宝账号有时绑定多个易出错。</p>
              	<p class="greenNum2">提现到账时间：早上9:30 - 晚上23:00 提现为及时到账，其他时段提现为当天早上9:30到账。</p>
            </form>
            <!-- 提现操作 -->
            <!-- 提现记录-->
            <div class="stbl">
            	<table width="100%" border="0" cellspacing="0" cellpadding="0">
                	<tbody>
                    	<tr class="trtitle">
                            <td>提现ID</td>
                            <td>提现金额（元）</td>
                            <td>姓名</td>
                            <td>账号</td>
                            <td>状态</td>
                            <td>提交时间</td>
                        </tr>
                        <!-- <if condition="$list"> -->
	                    <!-- <foreach name="list" item="vo"> -->
	                    <tr class="trtitle">
	                    	<td>{$vo['id']}</td>
	                        <td>{$vo['money']}（元）</td>
	                        <td>{$vo['xingming']}</td>
	                        <td>{$vo['zhifubao']}</td>
	                        <td>
	                            <!-- <if condition="$vo['status'] eq 1"> -->
	                            	已受理
	                            <!-- <elseif condition="$vo['status'] eq 0" /> -->
	                            	未受理
	                            <!-- </if> -->	
	                        </td>
	                        <td>{$vo['time_type']}</td>
	                    </tr>
	                    <!-- </foreach> -->
	                    <!-- <else/> -->    
                        <tr class="r_bg"><td colspan="6"><p class="empty-box"><span id="repttiXianList_lblEmpty">暂无记录</span></p></td></tr>
                        <!-- </if> -->    
                    </tbody>
                </table>
        	</div>
            <!-- 提现记录-->
		</div>
	</div>			
    <div class="clr"></div>
</div>
<script>
	function chkfrm() {
		if($("#money").val() == ""){
			alert("请输入提现金额！");return false;
		}else if($("#money").val() > $("#keyong").val()){
			alert("提现金额不能高于可用余额！"); return false;
		}
		if($("#jpassword").val() == ""){
			alert("请输入交易密码！");return false;
		}
	}
</script>
{:W('Page/foot')}
</body>
</html>